package com.tarena.lbs.stock.web.service.Impl;

import com.tarena.lbs.stock.web.repository.StockRepository;
import com.tarena.lbs.stock.web.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StockServiceImpl implements StockService {
    @Autowired
    private StockRepository stockRepository;

    @Override
    public boolean initCouponStock(Integer couponId, Integer num) {
        return stockRepository.initCouponStock(couponId,num);
    }

    @Override
    public boolean updateCouponNum(Integer couponId) {
        return stockRepository.updateCouponNum(couponId);
    }
}
